package com.appbee.core.server.requestfactory;

import javax.inject.Inject;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;
import com.google.inject.Injector;

public class GuiceServiceLocator implements ServiceLocator
{
	private Injector injector;

	@Inject
	public GuiceServiceLocator(Injector injcetor)
	{
		this.injector = injcetor;
	}

	@Override
	public Object getInstance(Class<?> clazz)
	{
		return injector.getInstance(clazz);
	}

}
